package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserFeedbackDao;
import com.frogs.ucenter.entity.UserFeedback;
import com.frogs.ucenter.service.UserFeedbackService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userFeedbackService")
public class UserFeedbackServiceImpl extends BaseServiceImpl<UserFeedback> implements UserFeedbackService {
    @Autowired
    private UserFeedbackDao userFeedbackDao;

    public UserFeedbackServiceImpl() {
        super();
    }

    public UserFeedbackDao getUserFeedbackDao() {
        return userFeedbackDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserFeedback> getBaseDao() {
        return userFeedbackDao;
    }

    public void setUserFeedbackDao(UserFeedbackDao userFeedbackDao) {
        this.userFeedbackDao = userFeedbackDao;
    }
}